package org.example.design.decorator.example2;

/**
 * @author huangshen
 * @version 0
 * @description ShapeDecorator
 * @since 2022/2/9 10:46
 */
public abstract class ShapeDecorator implements Shape{

    protected Shape decoratedShape;

    protected ShapeDecorator(Shape decoratedShape){
        this.decoratedShape = decoratedShape;
    }

    @Override
    public void draw(){
        decoratedShape.draw();
    }

}
